<?php

/*
  |--------------------------------------------------------------------------
  | Application Routes
  |--------------------------------------------------------------------------
  |
  | Here is where you can register all of the routes for an application.
  | It's a breeze. Simply tell Laravel the URIs it should respond to
  | and give it the Closure to execute when that URI is requested.
  |
 */

Route::pattern('id', '[0-9]+');
Route::pattern('tone', '[0-9]+');
Route::pattern('category', '[0-9]+');

//Route::pattern('order','')
Route::get('/', array('as' => 'home-page', 'uses' => 'Frontend\HomeController@getIndex'));
Route::post('captcha', 'Frontend\CaptchaController@postIndex');
Route::post('tao-bao-loi', array('as' => 'tao-bao-loi', 'uses' => 'Frontend\ErrorController@postCreate'));
// đăng kí
Route::get('dang-ki', array('as' => 'sign-up', 'uses' => 'AuthController@getSignUp'));
Route::post('dang-ki', 'AuthController@postSignUp');
Route::get('kich-hoat-tai-khoan/{activationCode}', array('uses' => 'activate', 'AuthController@getActivate'));


// đăng nhập
Route::get('dang-nhap', array('as' => 'signin', 'uses' => 'AuthController@getSignIn'));
Route::post('dang-nhap', 'AuthController@postSignIn');
Route::post('signin-ajax', 'AuthController@postAjaxSignIn');

// quên mật khẩu
Route::get('quen-mat-khau', array('as' => 'forgot-password', 'uses' => 'AuthController@getForgotPassword'));
Route::post('quen-mat-khau', 'AuthController@postForgotPassword');

// Xác nhận quên mật khẩu
Route::get('dat-mat-khau/{passwordResetCode}', array('as' => 'forgot-password-confirm', 'AuthController@getForgotPasswordConfirm'));
Route::get('dat-mat-khau/{passwordResetCode}', 'AuthController@postForgotPasswordConfirm');


// login via facebook
Route::get('oauth/session/facebook', array('as' => 'get-osignin-facebook', 'uses' => 'OauthController@getLoginWithFacebook'));
Route::post('oauth/session/facebook', array('as' => 'osignin-facebook', 'uses' => 'OauthController@getLoginWithFacebook'));
Route::get('oauth/success', array('as' => 'osignin-success', 'uses' => 'OauthController@getSuccess'));

// logout
Route::get('dang-xuat', array('as' => 'logout', 'uses' => 'AuthController@getLogout'));

// thanh-vien
Route::group(array('prefix' => 'thanh-vien'), function () {
    Route::get('/', array('as' => 'thanh-vien', 'uses' => 'Account\UsersController@getIndex'));
    Route::get('{id}/{slug}', array('as' => 'thanh-vien-ct', 'uses' => 'Account\UsersController@getDetail'));
});

// tai-khoan
Route::group(array('prefix' => 'tai-khoan'), function () {
    Route::get('/', array('as' => 'account', 'uses' => 'Account\DashboardController@getIndex'));
});

// giáo trình
//Route::get('giao-trinh/{url}', array('as' => 'detail/unit', 'UnitsController@getDetail'));
// hợp âm
Route::group(array('prefix' => 'hop-am'), function () {
    Route::get('/', array('as' => 'hop-am', 'uses' => 'Frontend\LyricsController@getIndex'));
    Route::get('{id}/{name}', array('as' => 'chi-tiet-hop-am', 'uses' => 'Frontend\LyricsController@getDetail'));
    Route::get('fullscreen/{id}/{slug}', array('as' => 'fs-hop-am-chi-tiet', 'uses' => 'Frontend\LyricsController@getFullScreen'));
    Route::get('dang-hop-am', array('as' => 'dang-hop-am', 'uses' => 'Frontend\LyricsController@getCreate'));
    Route::post('dang-hop-am', 'Frontend\LyricsController@postCreate');
    Route::post('add-version', array('as' => 'add-version', 'uses' => 'Frontend\LyricsController@postAddVersion'));
});
//huy_câu hỏi
Route::group(array('prefix' => 'hoi-dap'), function () {
    Route::get('/', array('as' => 'hoi-dap', 'uses' => 'Frontend\QuestionsController@getIndex'));
    Route::get('/{id}/{name}', array('as' => 'chi-tiet-hoi-dap', 'uses' => 'Frontend\QuestionsController@getDetail'));
    Route::post('/{id}/{name}', 'Frontend\QuestionsController@postCreateAnswer');
    Route::get('/tao-cau-hoi', array('as' => 'tao-cau-hoi', 'uses' => 'Frontend\QuestionsController@getCreate'));
    Route::post('/tao-cau-hoi', 'Frontend\QuestionsController@postCreate');
    Route::post('/top', 'Frontend\QuestionsController@postTop');
    Route::post('create-fast-question', array('as' => 'create-fast-question', 'uses' => 'Frontend\QuestionsController@postCreateFastQuestion'));
    Route::post('/loadquestion', 'Frontend\QuestionsController@postQuestion');
    Route::post('/capcha', 'Frontend\QuestionsController@postCapcha');
    Route::post('/hotquestion', 'Frontend\QuestionsController@postHotQuestion');
    Route::post('/loadanswers', 'Frontend\QuestionsController@postAnswers');
    Route::post('/addlike', 'Frontend\QuestionsController@postAddlike');
    Route::post('/voteQuestion', 'Frontend\QuestionsController@postAddVoteQuestion');
});

//huy_từ điển
Route::group(array('prefix' => 'tu-dien'), function () {
    Route::get('/', array('as' => 'tu-dien', 'uses' => 'Frontend\DictionaryController@getIndex'));
    Route::get('/tao-tu-dien', array('as' => 'tao-tu-dien', 'uses' => 'Frontend\DictionaryController@getCreate'));
    Route::post('/tao-tu-dien', 'Frontend\DictionaryController@postCreate');
    Route::get('/tu-dien-danh-muc/{id}', array('as' => 'tu-dien-danh-muc', 'uses' => 'Frontend\DictionaryController@getDictionaryCategory'));
    Route::get('/{id}/{name}', array('as' => 'tu-dien-chi-tiet', 'uses' => 'Frontend\DictionaryController@getDetail'));
    Route::get('/tim', array('as' => 'tu-dien-list-search', 'uses' => 'Frontend\DictionaryController@getListSearch'));
    Route::post('/yeu-cau', array('as' => 'yeu-cau', 'uses' => 'Frontend\DictionaryController@postRequest'));
});
// bài viết
Route::group(array('prefix' => 'bai-giang'), function () {
    Route::get('/', array('as' => 'bai-giang', 'uses' => 'Frontend\LessonsController@getIndex'));
    Route::get('{id}/{slug}', array('as' => 'bai-giang-chi-tiet', 'uses' => 'Frontend\LessonsController@getDetails'));
    Route::get('bai-giang-moi', array('as' => 'bai-viet-moi', 'uses' => 'Frontend\LessonsController@getCreate'));
    Route::post('bai-giang-moi', 'Frontend\LessonsController@postCreate');
});

// Video
Route::group(array('prefix' => 'video'), function () {
    Route::get('/', array('as' => 'video', 'uses' => 'Frontend\VideosController@getIndex'));
    Route::get('{id}/{slug}', array('as' => 'video-detail', 'uses' => 'Frontend\VideosController@getDetail'));
    Route::get('dang-video', array('as' => 'dang-video', 'uses' => 'Frontend\VideosController@getCreate'));
    Route::post('dang-video', 'Frontend\VideosController@postCreate');
});

# blog
Route::group(array('prefix' => 'blog'), function () {
    Route::get('/', array('as' => 'blog', 'uses' => 'Frontend\BlogsController@getIndex'));
    Route::get('{id}/{slug}', array('as' => 'detail-blog', 'uses' => 'Frontend\BlogsController@getDetail'));
    Route::get('c{id}/{slug}', array('as' => 'category-blog', 'uses' => 'Frontend\BlogsController@getCategory'));
});

// sàn diễn
Route::group(array('prefix' => 'san-dien'), function () {
    Route::get('/', array('as' => 'san-dien', 'uses' => 'Contest\HomeController@getIndex'));
    Route::get('{slug}/{id}', array('as' => 'cuoc-thi', 'uses' => 'Contest\ContentsController@getIndex'));
    Route::get('bai-du-thi/{slug}/{id}', array('as' => 'bai-du-thi', 'uses' => 'Contest\ContentsController@getDetails'));
    Route::get('gui-bai-du-thi', array('as' => 'gui-bai-du-thi', 'uses' => 'Contest\ContentsController@getCreate'));
    Route::post('gui-bai-du-thi', 'Contest\ContentsController@postCreate');
});

# Categories
Route::group(array('prefix' => 'danh-muc'), function () {
//    Route::get('{id}/{slug}','as'=>'danh-muc','uses'=>'Admin\Categories')
});

# thanh viên
Route::group(array('prefix' => 'thanh-vien'), function () {
    Route::get('/', array('as' => 'ds-thanh-vien', 'uses' => 'Account\MembersController@getIndex'));
    Route::get('{id}/{slug}', array('as' => 'thanh-vien', 'uses' => 'Account\MembersController@getDetail'));
});

# Singer
Route::group(array('prefix' => 'singer'), function () {
//    Route::get('suggestion',array('as'=>'suggestion-singer','uses'=>'Frontend\SingersController@getSuggestion'));
//    Route::post('suggestion-singer',array('suggestion-singer','uses'=>'Frontend\SingersController@postSuggestionSinger'));
    Route::get('suggestion-singer', array('suggestion-singer', 'uses' => 'Frontend\SingersController@postSuggestionSinger'));
    Route::get('suggestion-musician', array('suggestion-musician', 'uses' => 'Frontend\SingersController@postSuggestionMusician'));
});

# giáo trình
Route::group(array('prefix' => 'giao-trinh'), function () {
    Route::get('/', array('as' => 'courses', 'uses' => 'Frontend\CoursesController@getIndex'));
    Route::get('{id}/{slug}', array('as' => 'course/details', 'uses' => 'Frontend\CoursesController@getDetails'));
});

# Medias
Route::group(array('prefix' => 'media'), function () {
    Route::get('image/{hash}', array('as' => 'show-image', 'uses' => 'Frontend\MediasController@getImage'));
});


# Activity
Route::group(array('prefix' => 'activities'), function () {
    if (Request::ajax()) {
        Route::post('add-favourite', 'Frontend\ActivitiesController@postAddFavorite');
        Route::post('add-thank', 'Frontend\ActivitiesController@postAddThank');
        Route::post('add-comment', 'Frontend\ActivitiesController@postAddComment');
        Route::post('add-vote', 'Frontend\ActivitiesController@postAddVote');
        Route::post('list-comment', 'Frontend\ActivitiesController@postListComment');
        Route::post('join-course', 'Frontend\ActivitiesController@postJoinCourse');
    }
});

# tools
Route::group(array('prefix' => 'cong-cu'), function () {
    Route::get('tuner.html', array('as' => 'tool/tuner', 'uses' => 'Frontend\ToolsController@getTuner'));
    Route::get('metronome.html', array('as' => 'tool/metronome', 'uses' => 'Frontend\ToolsController@getMetronome'));
});

// Administrator
Route::group(array('prefix' => 'admin'), function () {

    // DELETE ALL CACHE
    Route::get('deletecaches', array('as' => 'deletecaches', 'uses' => 'Admin\DashboardController@getDeleteCaches'));

    // DASHBOARD
    Route::get('/', array('as' => 'admin', 'uses' => 'DashboardController@getIndex'));

    # Groups Management
    Route::group(array('prefix' => 'groups'), function () {
        Route::get('/', array('as' => 'groups', 'uses' => 'Admin\GroupsController@getIndex'));
        Route::get('create', array('as' => 'create/group', 'uses' => 'Admin\GroupsController@getCreate'));
        Route::post('create', 'Admin\GroupsController@postCreate');
        Route::get('edit/{groupId}', array('as' => 'update/group', 'uses' => 'Admin\GroupsController@getEdit'));
        Route::post('edit/{groupId}', 'Admin\GroupsController@postEdit');
        Route::get('delete/{groupId}', array('as' => 'delete/group', 'uses' => 'Admin\GroupsController@getDelete'));
        Route::get('restore/{groupId}', array('as' => 'restore/group', 'uses' => 'Admin\GroupsController@getRestore'));
    });

    # Users Management
    Route::group(array('prefix' => 'users'), function () {
        Route::get('/', array('as' => 'users', 'uses' => 'Admin\UsersController@getIndex'));
        Route::get('create', array('as' => 'create/user', 'uses' => 'Admin\UsersController@getCreate'));
        Route::post('create', 'Admin\UsersController@postCreate');
        Route::get('edit/{id}', array('as' => 'update/user', 'uses' => 'Admin\UsersController@getEdit'));
        Route::post('edit/{id}', 'Admin\UsersController@postEdit');
        Route::get('delete/{id}', array('as' => 'delete/user', 'Admin\UsersController@getDelete'));
    });

    # Tones Management
    Route::group(array('prefix' => 'tones'), function () {
        Route::get('/', array('as' => 'tones', 'uses' => 'Admin\TonesController@getIndex'));
        Route::get('create', array('as' => 'create/tone', 'uses' => 'Admin\TonesController@getCreate'));
        Route::post('create', 'Admin\TonesController@postCreate');
        Route::get('edit/{id}', array('as' => 'update/tone', 'uses' => 'Admin\TonesController@getEdit'));
        Route::post('edit/{id}', 'Admin\TonesController@postEdit');
        Route::get('delete/{id}', array('as' => 'delete/tone', 'uses' => 'Admin\TonesController@getDelete'));
        Route::get('restore/{id}', array('as' => 'restore/tone', 'uses' => 'Admin\TonesController@getRestore'));
    });

    # Units Management
    Route::group(array('prefix' => 'units'), function () {
        Route::get('/', array('as' => 'units', 'uses', 'Admin\UnitsController@getIndex'));
        Route::get('create', array('as' => 'create/unit', 'uses' => 'Admin\UnitsController@getCreate'));
        Route::post('create', 'Admin\UnitsController@postCreate');
        Route::get('edit/{id}', array('as' => 'update/unit', 'uses' => 'Admin\UnitsController@getEdit'));
        Route::get('order_playlist/{id}', array('as' => 'order_playlist/unit', 'uses' => 'Admin\UnitsController@getOrderPlaylist'));
        Route::post('order_playlist/{id}', 'Admin\UnitsController@postOrderPlaylist');
        Route::get('delete/{id}', array('as' => 'delete/unit', 'uses' => 'Admin\UnitsController@getDeleteUnit'));
        Route::get('restore/{id}', array('as' => 'restore/unit', 'uses' => 'Admin\UnitsController@getRestoreUnit'));
    });

    # Lyrics Management
    Route::group(array('prefix' => 'lyrics'), function () {
        Route::get('/', array('as' => 'lyrics', 'uses' => 'Admin\LyricsController@getIndex'));
        Route::get('create', array('as' => 'create/lyric/admin', 'uses' => 'Admin\LyricsController@getCreate'));
        Route::post('create', 'Admin\LyricsController@postCreate');
        Route::get('edit/{id}', array('as' => 'update/lyric/admin', 'uses' => 'Admin\LyricsController@getEdit'));
        Route::post('edit/{id}', 'Admin\LyricsController@postEdit');
        Route::get('delete/{id}', array('as' => 'delete/lyric/admin', 'uses' => 'Admin\LyricsController@getDelete'));
        Route::get('restore/{id}', array('as' => 'restore/lyric/admin', 'uses' => 'Admin\LyricsController@getRestore'));
    });
    # Question management - huynq9
    Route::group(array('prefix' => 'questions'), function () {
        Route::get('/', array('as' => 'questions', 'uses' => 'Admin\QuestionsController@getIndex'));
        Route::get('delete/{id}', array('as' => 'delete/question', 'uses' => 'Admin\QuestionsController@getDelete'));
        Route::get('edit/{id}', array('as' => 'edit/question', 'uses' => 'Admin\QuestionsController@getEdit'));
        Route::post('edit/{id}', 'Admin\QuestionsController@postEdit');
        Route::post('/checkquestion', 'Admin\QuestionsController@checkHotQuestion');
    });
    # Dictionary management - huynq9
    Route::group(array('prefix' => 'dictionaries'), function () {
        Route::get('/', array('as' => 'dictionaries', 'uses' => 'Admin\DictionariesController@getIndex'));
        Route::post('/', array('Admin\DictionariesController@postIndex'));
        Route::get('delete/{id}', array('as' => 'delete/dictionary', 'uses' => 'Admin\DictionariesController@getDelete'));
        Route::get('edit/{id}', array('as' => 'edit/dictionary', 'uses' => 'Admin\DictionariesController@getEdit'));
        Route::post('edit/{id}', 'Admin\DictionariesController@postEdit');
        Route::get('/categories', array('as' => 'dictionaries/categories', 'uses' => 'Admin\DictionariesController@getCategories'));
        Route::get('categories/create', array('as' => 'dictionaries/categories/create', 'uses' => 'Admin\DictionariesController@getCreateCategory'));
        Route::post('categories/create', array('as' => 'dictionaries/categories/create', 'uses' => 'Admin\DictionariesController@postCreateCategory'));
        Route::get('category/delete/{id}', array('as' => 'dictionary/category/delete', 'uses' => 'Admin\DictionariesController@getDeleteCategory'));
        Route::get('category/edit/{id}', array('as' => 'dictionary/category/edit', 'uses' => 'Admin\DictionariesController@getEditCategory'));
        Route::post('category/edit/{id}', array('as' => 'dictionary/category/edit', 'uses' => 'Admin\DictionariesController@postEditCategory'));
    });
    #Error managerment - huynq9
    Route::group(array('prefix' => 'errors'), function () {
        Route::get('/', array('as' => 'errors', 'uses' => 'Admin\ErrorsController@getIndex'));
        Route::post('/', array('Admin\ErrorsController@postIndex'));
        Route::get('error/delete/{id}', array('as' => 'error\delete', 'uses' => 'Admin\ErrorsController@getDelete'));
        Route::post('error/edit', array('as' => 'error\edit', 'uses' => 'Admin\ErrorsController@postEdit'));
        Route::post('error/showdetail', array('as' => 'show-detail-error', 'uses' => 'Admin\ErrorsController@postShowDetail'));
    });

    # News Management
    Route::group(array('prefix' => 'news'), function () {
        Route::get('/', array('as' => 'news', 'uses' => 'Admin\NewsController@getIndex'));
        Route::get('create', array('as' => 'create/news', 'uses' => 'Admin\NewsController@getCreate'));
        Route::get('edit/{id}', array('as' => 'update/news', 'uses' => 'Admin\NewsController@getEdit'));
        Route::get('delete/{id}', array('as' => 'delete/news', 'uses' => 'Admin\NewsController@getDelete'));
        Route::get('restore/{id}', array('as' => 'restore/news', 'uses' => 'Admin\NewsController@getRestore'));
        Route::post('create', 'Admin\NewsController@postCreate');

        # News Categories

        Route::group(array('prefix' => 'categories'), function () {
            Route::get('/', array('as' => 'category/news', 'uses' => 'Admin\NewsController@getIndexCategory'));
            Route::get('create', array('as' => 'create/category/news', 'uses' => 'Admin\NewsController@getCreateCategory'));
            Route::get('edit/{id}', array('as' => 'update/category/news', 'uses' => 'Admin\NewsController@getEditCategory'));
            Route::get('delete/{id}', array('as' => 'delete/category/news', 'uses' => 'Admin\NewsController@getDeleteCategory'));
            Route::get('restore/{id}', array('as' => 'restore/category/news', 'uses' => 'Admin\NewsController@getRestoreCategory'));
            Route::post('create', 'Admin\NewsController@postCreateCategory');
        });
    });

    Route::group(array('prefix' => 'videos'), function () {
        Route::get('/', array('as' => 'videos', 'uses' => 'Admin\VideosController@getIndex'));
        Route::get('create', array('as' => 'create/video/admin', 'uses' => 'Admin\VideosController@getCreate'));
        Route::get('edit/{id}', array('as' => 'update/video/admin', 'uses' => 'Admin\VideosController@getEdit'));
        Route::get('delete/{id}', array('as' => 'delete/video/admin', 'uses' => 'Admin\VideosController@getDelete'));
        Route::get('restore/{id}', array('as' => 'restore/video/admin', 'uses' => 'Admin\VideosController@getRestore'));
        Route::post('create', 'Admin\VideosController@postCreate');
    });

    # Categories Manager
    Route::group(array('prefix' => 'categories'), function () {
        Route::get('/', array('as' => 'categories/admin', 'uses' => 'Admin\CategoriesController@getIndex'));
        Route::get('create', array('as' => 'create/categories/admin', 'uses' => 'Admin\CategoriesController@getCreate'));
        Route::get('edit/{id}', array('as' => 'update/categories/admin', 'uses' => 'Admin\CategoriesController@getEdit'));
        Route::get('delete/{id}', array('as' => 'delete/categories/admin', 'uses' => 'Admin\CategoriesController@getDelete'));
        Route::get('restore/{id}', array('as' => 'restore/categories/admin', 'uses' => 'Admin\CategoriesController@getRestore'));
        Route::post('create', 'Admin\CategoriesController@postCreate');
    });

    # Topics Management
    Route::group(array('prefix' => 'topics'), function () {
        Route::get('/', array('as' => 'topics/admin', 'uses' => 'Admin\TopicsController@getIndex'));
        Route::get('create', array('as' => 'create/topics/admin', 'uses' => 'Admin\TopicsController@getCreate'));
        Route::get('edit/{id}', array('as' => 'update/topics/admin', 'uses' => 'Admin\TopicsController@getEdit'));
        Route::get('delete/{id}', array('as' => 'delete/topics/admin', 'uses' => 'Admin\TopicsController@getDelete'));
        Route::get('restore/{id}', array('as' => 'restore/topics/admin', 'uses' => 'Admin\TopicsController@getRestore'));
        Route::post('create', 'Admin\TopicsController@postCreate');
    });

    # Contests Management
    Route::group(array('prefix' => 'contests'), function () {
        Route::get('/', array('as' => 'contests/admin', 'uses' => 'Admin\ContestsController@getIndex'));
        Route::get('create', array('as' => 'create/contests/admin', 'uses' => 'Admin\ContestsController@getCreate'));
        Route::get('edit/{id}', array('as' => 'update/contests/admin', 'uses' => 'Admin\ContestsController@getEdit'));
        Route::get('delete/{id}', array('as' => 'delete/contests/admin', 'uses' => 'Admin\ContestsController@getDelete'));
        Route::get('restore/{id}', array('as' => 'restore/contests/admin', 'uses' => 'Admin\ContestsController@getRestore'));
        Route::post('create', 'Admin\ContestsController@postCreate');
        Route::post('edit/{id}', 'Admin\ContestsController@postEdit');
    });

    # Singers Management
    Route::group(array('prefix' => 'singers'), function () {
        Route::get('/', array('as' => 'singers/admin', 'uses' => 'Admin\SingersController@getIndex'));
        Route::get('create', array('as' => 'create/singers/admin', 'uses' => 'Admin\SingersController@getCreate'));
        Route::get('edit/{id}', array('as' => 'update/singers/admin', 'uses' => 'Admin\SingersController@getEdit'));
        Route::get('delete/{id}', array('as' => 'delete/singers/admin', 'uses' => 'Admin\SingersController@getDelete'));
        Route::get('restore/{id}', array('as' => 'restore/singers/admin', 'uses' => 'Admin\SingersController@getRestore'));
        Route::post('create', 'Admin\SingersController@postCreate');
    });

    # Lessons Management
    Route::group(array('prefix' => 'lessons'), function () {
        Route::get('/', array('as' => 'lessons/admin', 'uses' => 'Admin\LessonsController@getIndex'));
        Route::get('create', array('as' => 'create/lessons/admin', 'uses' => 'Admin\LessonsController@getCreate'));
        Route::get('edit/{id}', array('as' => 'update/lessons/admin', 'uses' => 'Admin\LessonsController@getEdit'));
        Route::get('delete/{id}', array('as' => 'delete/lessons/admin', 'uses' => 'Admin\LessonsController@getDelete'));
        Route::get('restore/{id}', array('as' => 'restore/lessons/admin', 'uses' => 'Admin\LessonsController@getRestore'));
        Route::post('edit', 'Admin\LessonsController@postEdit');
    });
});


//Convert

Route::group(array('prefix' => 'convert'), function () {
    Route::get('/', 'ConvertController@Index');
    Route::get('user-portal', 'ConvertController@getUserPortal');
    Route::get('user-vbb', 'Convert2Controller@getUserVbb');
    Route::get('video-category', 'Convert2Controller@getVCategory');
    Route::get('video', 'Convert2Controller@getVideo');
    Route::get('event', 'Convert2Controller@getEvent');
    Route::get('event-ref', 'Convert2Controller@getEventRef');
    Route::get('blog-category', 'Convert2Controller@getBlogCategory');
    Route::get('blog', 'Convert2Controller@getBlog');
    Route::get('tone', 'ConvertController@getTone');
    Route::get('lyric', 'ConvertController@getLyrics');
    Route::get('lessons', 'ConvertController@getLessons');
    Route::get('question', 'ConvertController@getQuestion');
    Route::get('answer', 'ConvertController@getAnswer');
    Route::get('comment', 'ConvertController@getComments');
    Route::get('vote', 'ConvertController@getVote');
});

